package com.strategy.strategy;

public class Test {
    public static void main(String[] args) {

        WildDuck wildDuck = new WildDuck();
        wildDuck.display();
        wildDuck.fly();
        System.out.println("-----------");

        BeijingDuck beijingDuck = new BeijingDuck();
        beijingDuck.display();
        beijingDuck.fly();
        System.out.println("-----------");

        ToyDuck toyDuck =new ToyDuck();
        toyDuck.display();
        toyDuck.fly();

    }
}
